package extration;

import java.util.Comparator;

public class MyComparator implements Comparator<Mot> {

	@Override
	public int compare(Mot o1, Mot o2) {
		
		if(o1.getNbOccGenerale() > o2.getNbOccGenerale()){
			return -1;
		}
		else if(o1.getNbOccGenerale() < o2.getNbOccGenerale()){
			return 1;
		}
		
		return 0;
	
	}

}

